#-*- coding:utf-8 -*-
#利润题
profit_numb=input("请输入利润值:")
print u"利润为：",profit_numb
bonus_list=[]

if profit_numb<10:
	bonus=float(profit_numb*0.1)
	print bonus
if profit_numb>10 and profit_numb<20:
	#profit_20=profit_numb-10
	bonus=(profit_numb-10)*0.075+10*0.1
	print bonus
if profit_numb>20 and profit_numb<40:
	#profit_40=profit_numb-20
	bonus=(profit_numb-20)*0.05+10*0.1+10*0.075
	print bonus
if profit_numb>40 and profit_numb<60:
	bonus=(profit_numb-40)*0.03+10*0.1+10*0.075+20*0.05
	print bonus
if profit_numb>60 and profit_numb<100:
	bonus=(profit_numb-60)*0.015+10*0.1+10*0.075+20*0.05+20*0.03
	print bonus
if profit_numb>100:
	bonus=(profit_numb-100)*0.01+10*0.1+10*0.075+20*0.05+20*0.03+40*0.015
	print bonus